<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div class='app-container'>
    <el-form ref="form" :model="product_info" :rules="rules" label-width="100px" id="mvcfm">
      <div class="form-unit">
        <span class="mvc-title-left"> 搜索产品类目 </span>
      </div>
      <div>
        <el-row>
          <el-col :span="12">
            <el-form-item label="产品名称" prop="product_name">
              <el-input v-model="product_info.product_name" />
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="缩写" prop="product_namebar">
              <el-input v-model="product_info.product_namebar" />
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="产品型号" prop="product_model">
              <el-input v-model="product_info.product_model" />
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="产品规格" prop="product_norm">
              <el-input v-model="product_info.product_norm" />
            </el-form-item>
          </el-col>
        </el-row>
      </div>
      <el-button @click="('')" type='success' size="mini"><i class='fa fa-check'></i>搜索</el-button>
      <el-button @click="gotoPage(''+vueparams+'')" type='primary' size="mini">清除</el-button>
    </el-form>
  </div>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'ProductOwnSearch',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        product_info: {
          product_name: null,
          product_namebar: null,
          product_model: null,
          product_norm: null,
        },
        loading: false,
        rules: {
          product_name: [{
            required: true,
            message: "产品名称不能为空",
            trigger: 'blur',
          }],
          product_namebar: [{
            required: true,
            message: "缩写不能为空",
            trigger: 'blur',
          }],
          product_model: [{
            required: true,
            message: "产品型号不能为空",
            trigger: 'blur',
          }],
          product_norm: [{
            required: true,
            message: "产品规格不能为空",
            trigger: 'blur',
          }],
        }
      }
    },
    created() {},
    updated() {},
    mounted() {},
    methods: {},
  }
</script>
